<template>
    <el-form-item label="定向or排除" prop="audience">
        <el-radio-group v-model="createform.audience.district_type" @change="changeDistrict" size="small">
            <el-radio-button :label="true">定向</el-radio-button>
            <el-radio-button :label="false">排除</el-radio-button>
        </el-radio-group>
    </el-form-item>
</template>

<script>
export default {
    props: ["createform","dataForm"],
    name: "",
    data() {
        return {};
    },
    created() {
        
    },
    methods: {
        changeDistrict(){   
            this.createform.audience.district = "CITY"
            this.createform.audience.location_type = "ALL"
            this.createform.audience.cityVal = [];
            this.createform.audience.cityHasCheck = [];
            this.createform.audience.cityAllValue = [];
            this.createform.audience.isAllCity = false;
            this.sessionSave()
        },
        sessionSave(){
            this.$emit("sessionSave")
        },
        
    },
    components: {},
};
</script>


<style scoped>
</style>

